package com.ruoyi.system.domain;

import com.ruoyi.common.utils.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 entity_device
 * 
 * @author ruoyi
 * @date 2020-12-27
 */
public class EntityDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 器材名称 */
    @Excel(name = "器材类型名称")
    private String typeName;
    /** 器材类型id*/
    private Long typeId;
    /** 器材型号id*/
    private Long modeId;
    /** 器材编号 */
    @Excel(name = "器材编号")
    private String serialNumber;

    /** 器材型号 */
    @Excel(name = "器材型号名称")
    private String modeName;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 库存：0 未采购 1库存 2 出租 3 损害 */
    @Excel(name = "库存",readConverterExp="0=未采购,1=库存,2=出租中,3=损坏")
    private Integer valid;
    @Excel(name = "单位")
    private Long unit;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSerialNumber(String serialNumber) {
        if(!StringUtils.isEmpty(serialNumber)){
            this.serialNumber = serialNumber;
        }
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }

    public void setNote(String note) {
        if(!StringUtils.isEmpty(note)){
            this.note = note;
        }
    }

    public String getNote() 
    {
        return note;
    }
    public void setValid(Integer valid)
    {
        this.valid = valid;
    }

    public Integer getValid()
    {
        return valid;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Long getModeId() {
        return modeId;
    }

    public void setModeId(Long modeId) {
        this.modeId = modeId;
    }

    public String getModeName() {
        return modeName;
    }

    public void setModeName(String modeName) {
        this.modeName = modeName;
    }

    public Long getUnit() {
        return unit;
    }

    public void setUnit(Long unit) {
        this.unit = unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeId", getTypeId())
            .append("typeName", getTypeName())
            .append("serialNumber", getSerialNumber())
            .append("modeName", getModeName())
            .append("modeId", getModeId())
            .append("note", getNote())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("unit", getUnit())
            .append("valid", getValid())
            .toString();
    }
}
